<template>
  <div>
    <el-carousel arrow="always" class="lunbo">
        <el-carousel-item v-for="(item,index) in database" :key="item.id">
            <img :src="item.image">
        </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script>
export default {
    data(){
        return{

        }
    },
    props:{
        database:Array
    },
}
</script>

<style lang="less" scoped>

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body html{
    padding: 0;
    margin: 0;
}
.lunbo{
    width: 100%;
    max-height: 640px;
    /deep/.el-carousel__container{
        height:590px;
        max-height:640px;
    }
    img{
        height: 100%;
        width: 100%;
    }
}
</style>